package com.example;

import com.example.entity.Emp;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.redis.core.RedisTemplate;

import java.util.List;

@SpringBootTest
public class RedisTest {
    @Autowired
    private RedisTestSerice serice;
    @Test
    public void addRedis(){
        System.out.println(serice.getEmpList());
    }
    @Test
    public void add(){
        System.out.println(serice.TestAdd(new Emp(1001,"劳大","男","经理")));
    }
    @Test
    public void rem(){
        System.out.println(serice.Testdel(new Emp(1001,"劳大","男","经理")));
    }


}
